package ink.teamwork.model;

import lombok.Getter;

@Getter
public class AjaxResponse {
    /**
     * 是否成功
     */
    private boolean success;

    /**
     * 成功/错误消息
     */
    private String message;

    /**
     * 返回数据
     */
    private Object model;

    public AjaxResponse() {
        this(true);
    }

    public AjaxResponse(boolean success) {
        this(success, "");
    }

    public AjaxResponse(boolean success, String message) {
        this(success, message, null);
    }

    public AjaxResponse(boolean success, String message, Object model) {
        this.success = success;
        this.message = message;
        this.model = model;
    }
}
